Fix bug #14032 with restoring frame dimensions on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Mar 2013 09:01:14 +0000 (11:01 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Mar 2013 09:01:14 +0000 (11:01 +0200)
commit7cf6820c566ac2e2e78d2f72e478dfb07f8c68f4
treee193a010d497ec2ad7a6b5cf0dee382ae3246002
parentbeb495721be6d5118a1850d1b5dd19bce493236d
Fix bug #14032 with restoring frame dimensions on MS-Windows.

 src/w32term.c (w32fullscreen_hook): Record last value of the frame's
 'fullscreen' parameter.  Always record previous width and height
 of the frame, except when switching out of maximized modes, so
 that they could be restored correctly, instead of resetting to the
 default frame dimensions.  Send SC_RESTORE command to the frame,
 unless we are going to send SC_MAXIMIZE, to restore the frame
 resize hints in the mouse pointer shown by the window manager.
 src/frame.c (get_frame_param): Now extern for WINDOWSNT as well.
 src/lisp.h (get_frame_param): Adjust conditions for prototype
 declaration.
src/ChangeLog
src/frame.c
src/lisp.h
src/w32term.c